####### Compiler, tools and options

include ../M_incl
SRC_DIR=.

####### Files

OBJECTS = agp_data.o
EXE= ../agp
LIB= ../lib/libagp.a

####### Build rules

ALL: $(LIB) $(EXE)

$(EXE): $(OBJECTS) agp.o
	$(CXX) $(CXXFLAGS) $(INCL) -o $@ $(OBJECTS) agp.o

$(LIB): $(OBJECTS)
	ar ruvs $@ $(OBJECTS) 

clean:
	-rm -f $(OBJECTS) *~ core *.core $(LIB) $(EXE) Dependencies *.o

Dependencies:
		touch Dependencies

#!modified because eclipse complains that the Dependencies file doesn't
#exist when running the Project Clean... commands.
if test -e Dependencies then \
	include Dependencies
fi
